TITLE MASM Template						(main.asm)

; Description:
; 
; Revision date:

INCLUDE Irvine32.inc 
.data
loopCount		DWORD	20
firstSeed		DWORD	0
secondSeed	DWORD	1
.code
main PROC
	call Clrscr
	; Dump the content of the data segment starting at the beginning
	mov esi,OFFSET loopCount
	mov ecx,12
	mov ebx,1
	call DumpMem
	call Crlf
	call Crlf
	; Set loop value
	mov ecx,loopCount
	; Set second seed
	mov eax,1
	; Set first seed
	mov ebx,0 
	
loop1:	
	; calculate next Fibonacci number
	add eax,ebx
	call WriteDec
	call Crlf
	; Switch eax and ebx
	xchg eax,ebx
	loop loop1
	
	exit
main ENDP

END main